var baseURL = 'http://looxii-widget.appspot.com'; function appendCSS(url) { var css = document.createElement('link'); css.type = "text/css"; css.rel = "stylesheet"; css.href=url if(document.getElementsByTagName('head').length) { document.getElementsByTagName("head").item(0).appendChild(css); return true; } else { return false; } } var widget_timer = 0; function appendJS(url) { var js = document.createElement('script'); js.type = 'text/javascript'; js.language = 'JavaScript'; js.src = url; if(document.getElementsByTagName('head').length) { document.getElementsByTagName("head").item(0).appendChild(js); return true; } else { return false; } } appendCSS(baseURL+"/stylesheets/ministyles.css"); if (typeof jQuery == 'undefined') { if (appendJS(baseURL+"/js/jquery-1.3.2.min.js")){ widget_timer = setTimeout ( "add_widget()", 200 ); } } function add_widget(){ if (typeof jQuery != 'undefined') { clearTimeout (widget_timer); $('#widget_div').append("
\r\n

Recent Tweets \"black nasty\"

\r\n\r\n \r\n \r\n \r\n\r\n\r\n\t

powered by looxii

\r\n
"); $('#widget_div .module').css('border-color','#000000'); $('#widget_div .module h1').css('background-color','#000000'); $('#widget_div .module a').css('color','#000000'); $('#widget_div .module .tweets .tweet .user-info a').css('color','#000000'); $('#widget_div .module .tweets .tweet ul.actions li a').css('border-color','#000000'); $('#widget_div .module .tweets .tweet ul.actions li a').css('color','#fff'); $('#widget_div .module .tweets .tweet ul.actions li a').css('background-color','#000000'); $('#widget_div .module .tweets .tweet ul.actions li a').hover(function(){ var cssObj = {'background-color':'#fff','color':'#000000'} $(this).css(cssObj); }, function(){ var cssObj = {'background-color':'#000000','color':'#fff'} $(this).css(cssObj); }); $('#widget_div .module p.byline').css('background-color','#000000'); } }